import config from "@/config"
import http from "@/utils/request"

/*******
 * 楼宇经济
 *******/ 
export default {
    buildingEconomy: {
        // 获取最新更新时间
        getIciConfig:{
            url: `${config.API_URL}/get/iciConfig/getConfig`,
            name: "获取最新更新时间",
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },
        // 楼宇经济发展综合评价指标体系
        getBuildingCompute:{
            url: `${config.API_URL}/icipark/buildingCompute/get/`,
            name: "楼宇经济发展综合评价指标体系",
            get: async function (params) {
                return await http.get(this.url+params.uuid,{});
            }
        }, 

        // 楼宇经济分析
        getBuildingComputeList:{
            url: `${config.API_URL}/icipark/buildingCompute/list`,
            name: "楼宇经济分析",
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },
         
        // 楼宇科技创新
        iciBuildingScienceInnovationStat:{
            url: `${config.API_URL}/get/iciBuildingScienceInnovationStat/getBuildingScienceInnovationStatByBuildingId`,
            name: "楼宇科技创新",
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },

        // 楼宇科技创新列表
        getBuildingScienceInnovationStatList:{
            url: `${config.API_URL}/get/iciBuildingScienceInnovationStat/getBuildingScienceInnovationStatList`,
            name: "楼宇科技创新列表",
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },

        // 楼宇税收
        getBuildingTaxStatList:{
            url: `${config.API_URL}/get/iciBuildingTaxStat/getBuildingTaxStatList`,
            name: "楼宇税收",
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },
        
        // 服务配套
        getBuildingsupportList:{
            url: `${config.API_URL}/get/iciBuildingsupport/getBuildingsupportList`,
            name: "服务配套",
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },
        
        // 基本信息
        getBuildingById:{
            url: `${config.API_URL}/get/iciBuilding/getBuildingById`,
            name: "基本信息",
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },

        // 楼宇树状结构
        getBuildingTree:{
            url: `${config.API_URL}/get/iciBuilding/getBuildingTree`,
            name: "楼宇树状结构",
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },

        getBuildingPublicStatByBuildingId:{
            url: `${config.API_URL}/get/iciBuildingPublicStat/getBuildingPublicStatByBuildingId`,
            name: "",
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },

        getBuildingPublicStatList:{
            url: `${config.API_URL}/get/iciBuildingPublicStat/getBuildingPublicStatList`,
            name: "",
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },

        getBuildingTaxEnterpriseStatByBuildingId:{
            url: `${config.API_URL}/get/iciBuildingTaxEnterpriseStat/getBuildingTaxEnterpriseStatByBuildingId`,
            name: "",
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },

        getBuildingTaxCategoryStatList:{
            url: `${config.API_URL}/get/iciBuildingTaxCategoryStat/getBuildingTaxCategoryStatList`,
            name: "",
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },

        getBuildingList:{
            url: `${config.API_URL}/get/iciBuilding/getBuildingList`,
            name: "",
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },


        getCheckinByBuildingId:{
            url: `${config.API_URL}/get/iciCheckin/getCheckinByBuildingId`,
            name: "",
            get: async function (params) {
                let data = {
                    building_id:params.id
                }
                return await http.get(this.url,params);
            }
        },

        // 获取楼宇下的公司信息
        getConmpanyInfo:{
            url:`${config.API_URL}//iciBuilding/getBuildingEnterprise`,
            name:'',
            get: async function () {
                return await http.get();s
            }
        },
        //数据中台企业数据
        getCompany:{
            url:`${config.API_URL}//api/building/economy`,
            name:'',
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },

       
        
    }

}